package parts3.lesson34;

/**
 * 课时34 多线程常用操作方法（线程优先级）
 */
public class Demo {
    public static void main(String[] args) {
        MyThread mt = new MyThread();


        Thread t1 = new Thread(mt, "A");
        Thread t2 = new Thread(mt, "B");
        Thread t3 = new Thread(mt, "C");
        t1.setPriority(Thread.MIN_PRIORITY);
        t2.setPriority(Thread.MIN_PRIORITY);
        t3.setPriority(Thread.MAX_PRIORITY);
        t1.start();
        t2.start();
        t3.start();
    }
}
